package cn.xt.service.house;

import cn.xt.bean.House;
import cn.xt.dao.house.HouseDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shkstart
 * @date 2018/11/19-12:50
 */
@Service("houseService")
public class HouseServiceImp implements HouseService {
    @Autowired
    private HouseDao houseDao;

    @Override
    public int addHouse(House house) {
        return houseDao.addHouse(house);
    }

    @Override
    public int maxHouseId() {
        return houseDao.maxHouseId();
    }

    @Override
    public List<House> listHouse(int users_id) {
        return houseDao.listHouse(users_id);
    }

    @Override
    public House houseView(int house_id) {
        return houseDao.houseView(house_id);
    }
}
